# Maintainer: Jelle van der Waa <jelle@vdwaa.nl>

pkgname=gcovr
pkgver=6.0
pkgrel=2
pkgdesc='provides a utility for managing the use of the GNU gcov utility'
arch=(any)
url="https://gcovr.com/"
license=(BSD)
depends=('python' 'python-jinja' 'python-lxml' 'gcc')
makedepends=('python-setuptools')
checkdepends=('python-pytest')
source=("https://github.com/gcovr/gcovr/archive/${pkgver}.tar.gz")
sha256sums=('78e1c0f7311376907922d8e701009f5f0434594962fb8817577224c43087361b')

build() {
  cd ${pkgname}-${pkgver}
  python setup.py build
}

check() {
  cd ${pkgname}-${pkgver}
  # requires pyutillib, ply
  #pytest gcovr
}

package() {
  cd ${pkgname}-${pkgver}
  python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
  install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.txt
}
